<?php
//ZzErrorMessage
class error_Message extends Bout {
  private $title;
  private $message;

  function setTitle($title) {
    $this->title = $title;
  }

  function setMessage($message) {
    $this->message = $message;
  }

  function build() {
    if(isset($_SERVER['HTTP_REFERER']))
      $urlRetour = $_SERVER['HTTP_REFERER'];
    else
      $urlRetour = './';
    return '  <div class="MessageError"><h1>'.$this->title.'</h1><p>'.$this->message.'</p><a href="'.$urlRetour.'">Retour</a></div>';
  }
}
?>